<template>
	<view class="contact">
		<image class="img" src="../../static/img/contact.jpg"></image>
		<view class="info">
			<view @click="phone">联系电话: 99988891(点击拨打)</view>
			<view>联系地址：江苏省无锡市惠山区羊山镇龙湖家园2号</view>
		</view>
		<map class="map" :longitude="longitude" :scale="scale" :latitude="latitude" :markers="covers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 120.310369,
				latitude: 31.593453,
				scale: 11,
				covers: [
					{
					longitude: 120.310369,
					latitude: 31.583558,
					iconPath: '',
					width:30,
					height:30
					}
				]
			}
		},
		methods: {
			phone(){
				console.log("拨打电话！");
				uni.makePhoneCall({
					phoneNumber: 99988891
				})
			}
		}
	}
</script>

<style lang="scss">
.contact {
	image {
		width: 750rpx;
		height: 320rpx;
	}
	.info {
		view {
			padding: 10rpx 20rpx;
			font-size: 30rpx;
			line-height: 50rpx;
			border-bottom: 1rpx solid #eee;
		}
	}
	.map {
		padding: 10rpx;
		width: 740rpx;
		height: 750rpx;
	}
}
</style>
